import request_ from ".";

export const uploadImage = (data: any) => {
  return request_.post({
    url: "/image",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  });
};

export const getImages = (offset: number, limit: number) => {
  return request_.get({
    url: "/image",
    params: {
      offset,
      limit
    }
  });
};
